import 'package:flutter/material.dart';

class ButtonRoute extends StatefulWidget {
  const ButtonRoute({Key? key}) : super(key: key);

  @override
  _ButtonRouteState createState() => _ButtonRouteState();
}

class _ButtonRouteState extends State<ButtonRoute> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        ElevatedButton(
            style: ButtonStyle(
              backgroundColor: MaterialStateProperty.all(Color.fromARGB(255, 202, 71, 71)),
              shape: MaterialStateProperty.all(
                RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(16.0),
                ),
              ),
              padding: MaterialStateProperty.all(
                  EdgeInsets.symmetric(horizontal: 14.0, vertical: 6.0)),
              minimumSize: MaterialStateProperty.all(Size(0, 0)),
              maximumSize: MaterialStateProperty.all(Size(375.0, 36.0)),
            ),
            onPressed: () {
              print('normal');
            },
            child: Text('ElevatedButton normal')),
        ElevatedButton.icon(
            icon: Icon(Icons.abc),
            label: const Text('ElevatedButton icon'),
            onPressed: () {
              print('TextButton');
            }),
        OutlinedButton(
            onPressed: () {
              print('OutlinedButton normal');
            },
            child: Text('OutlinedButton normal')),
        OutlinedButton.icon(
            icon: Icon(Icons.abc),
            label: const Text('OutlinedButton icon'),
            onPressed: () {
              print('OutlinedButton normal');
            }),
        IconButton(
            icon: Icon(Icons.abc),
            onPressed: () {
              print('IconButton');
            }),
        TextButton(
            child: Text('TextButton normal'),
            onPressed: () {
              print('TextButton');
            }),
        TextButton.icon(
            icon: Icon(Icons.abc),
            label: const Text('TextButton icon'),
            onPressed: () {
              print('TextButton normal');
            }),
      ],
    );
  }
}
